import request from '@/utils/request'

// 查询工单类型列表
export function listWorkOrderType(query) {
  return request({
    url: '/workorder/workOrderType/list',
    method: 'get',
    params: query
  })
}

// 查询工单类型详细
export function getWorkOrderType(id) {
  return request({
    url: '/workorder/workOrderType/' + id,
    method: 'get'
  })
}

// 新增工单类型
export function addWorkOrderType(data) {
  return request({
    url: '/workorder/workOrderType',
    method: 'post',
    data: data
  })
}

// 修改工单类型
export function updateWorkOrderType(data) {
  return request({
    url: '/workorder/workOrderType',
    method: 'put',
    data: data
  })
}

// 删除工单类型
export function delWorkOrderType(id) {
  return request({
    url: '/workorder/workOrderType/' + id,
    method: 'delete'
  })
}

// 导出工单类型
export function exportWorkOrderType(query) {
  return request({
    url: '/workorder/workOrderType/export',
    method: 'get',
    params: query
  })
}